Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't set username on Windows #70

Closed
wants to merge 1 commit into from
Closed

Conversation

bentekkie
Copy link
Contributor

Lookup up the username involves a slow AD query. Just skip setting it; the only effect is to create logfiles with the name unknownuser in the path.

cl/267237763 (google-internal)

Lookup up the username involves a slow AD query. Just skip setting it; the only
effect is to create logfiles with the name unknownuser in the path.

cl/267237763 (google-internal)
@philwo
Copy link

philwo commented Jul 5, 2024

I think #69 is the better fix (and we should use that internally as well), because it matches the implementation of user.Current() of Go's standard library except for the unnecessary, slow part that looks up the display name.

So it is a completely safe change for glog that will not result in any change of behavior for current users, except that it's faster.

@bentekkie bentekkie marked this pull request as draft July 5, 2024 12:17
@bentekkie bentekkie closed this Aug 7, 2024
@bentekkie bentekkie deleted the user branch August 7, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants